Northwoods.GoSilverlight 1.3.5 Assembly
FindElementUpFrom(FrameworkElement,Predicate<FrameworkElement>) Method
See Also  Send Feedback
Northwoods.GoXam.Tool Namespace > DiagramTool Class > FindElementUpFrom Method : FindElementUpFrom(FrameworkElement,Predicate<FrameworkElement>) Method

elt
a FrameworkElement
pred
When this predicate is true for an element, return that element. When this predicate is false for an element, continue up the visual parent chain. Stop going up the visual parent chain when reaching the Northwoods.GoXam.Part.
Search up the chain of parent visual elements starting with the given element to find one for which pred is true

Syntax

Visual Basic (Declaration) 
Protected Overloads Overridable Function FindElementUpFrom( _
   ByVal elt As FrameworkElement, _
   ByVal pred As Predicate(Of FrameworkElement) _
) As FrameworkElement
C# 
protected virtual FrameworkElement FindElementUpFrom( 
   FrameworkElement elt,
   Predicate<FrameworkElement> pred
)

Parameters

elt
a FrameworkElement
pred
When this predicate is true for an element, return that element. When this predicate is false for an element, continue up the visual parent chain. Stop going up the visual parent chain when reaching the Northwoods.GoXam.Part.

Return Value

null if no such element is found

Requirements

See Also

© 2012 All Rights Reserved.